package com.ozo.easy.pojo.dto;

import com.ozo.easy.common.model.BaseValidDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.*;
import lombok.Data;

import java.io.Serializable;

/**
 * 通知保存对象
 *
 * @author ozo
 * @version 1.0
 * @date 2025-02-06 16:35:26
 */
@Data
@Schema(description = "通知保存对象")
public class SysNoticeSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "主键不能为空", groups = BaseValidDTO.Edit.class)
    @Schema(description = "id")
    private Long id;

    @Schema(description = "通知类型")
    private String noticeType;

    @NotBlank(message = "标题不能为空")
    @Schema(description = "标题")
    private String title;

    @NotBlank(message = "内容不能为空")
    @Schema(description = "内容")
    private String content;

    @NotNull(message = "是否发布不能为空")
    @Schema(description = "是否发布")
    private Boolean publishFlag = false;

}
